package com.googlecode.cnasort.cc.rmi.common.data;

import java.rmi.RemoteException;


public interface RMIFileLoader 
{
    public RMIDirectory[] getRootDirectories();

    public RMIDirectory[] getDirectories( RMIDirectory directory );
    public RMIFile[]      getFiles( RMIDirectory directory );

    //public byte[] getFileContent( RMIFile file ) throws RemoteException;
    
    public void setFileTransfertBufferSize(int maxBufferSize);
    public int getFileTransfertBufferSize(); 

    public void openFileTransfert(RMIFile file) throws RemoteException;
    public boolean isFileTransfertComplete(); 
    public byte[] nextFileTransfertPart() throws RemoteException;
    public void closeFileTransfert() throws RemoteException;
}
